package com.hxs.hxsserver.domain.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("密码登录参数")
public class PasswordLoginDTO {
    private static final long serialVersionUID = 1L;

    @NotBlank
    @ApiModelProperty(value = "登录名")
    protected String loginName;

    @NotBlank
    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "验证码ID", dataType = "String", required = false)
    private String picKey;

    @ApiModelProperty(value = "验证码", dataType = "String", required = false)
    private String picCode;
}
